﻿
@{
    ViewBag.Title = "入库明细";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";

    var items = ViewBag.TaskItems as List<IOA.MES.DataAccess.VModel.VWmsInboundTaskItem>;
}

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <table id="table" lay-filter="table"></table>
        </div>
    </div>
</div>


@section Scripts{
    <script>
        layui.use(['table', 'layer', 'laydate', 'form'], function () {
            var table = layui.table;

            var options = {
                elem: '#table'
                , data: @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(items))
                , limit: 1000
                , cols: [[
                    { field: 'RowNo', title: '行号', width: 80 }
                    , { field: 'PackNo', title: '托盘号', minWidth: 200 }
                    , { field: 'BarCode', title: '组件序列号', minWidth: 200 }
                    , { field: 'ProductCode', title: '物料编码', minWidth: 200 }
                    , { field: 'ProductName', title: '物料描述', minWidth: 200 }
                    , { field: 'Vm', title: '开路电压', minWidth: 120 }
                    , { field: 'Im', title: '短路电流', minWidth: 120 }
                    , { field: 'Voc', title: '最大功率电压', minWidth: 120 }
                    , { field: 'Isc', title: '最大功率电流', minWidth: 120 }
                    , { field: 'Pmax', title: '最大功率', minWidth: 120 }
                    , { field: 'FF', title: '填充因子', minWidth: 120 }
                    , { field: 'PowerLevel', title: '标称功率 Watt', minWidth: 120 }
                    , { field: 'Unit', title: 'ERP主单位' }
                    , { field: 'CabinetTime', title: '生产日期' }
                    , { field: 'QLevel', title: '组件等级' }
                    , { field: 'PowerLevel', title: '功率' }
                    , { field: 'FrameColor', title: '边框颜色' }
                    , { field: 'LineLength', title: '线长' }
                    , { field: 'JunBoxFactory', title: '接线盒厂家' }
                    , { field: 'ScreenGraphics', title: '网版图形' }
                    , { field: 'CellType', title: '电池片类型' }
                    , { field: 'CurrentLevel', title: '电流档' }
                    , { field: 'FrameSize', title: '边框尺寸' }
                    , { field: 'BackPlanColor', title: '背板类型' }
                    , { field: 'BackPlanColor', title: '背板颜色' }
                    , { field: 'JunBoxSpecs', title: '接线盒型号' }
                    , { field: 'CellColor', title: '电池片颜色' }
                    , { field: 'SolarModel', title: '组件型号' }
                    , { field: 'NeedSupervision', title: '需要监造' }
                    , { field: 'ContractNo', title: '销售合同号' }
                    , { field: 'ProjectName', title: '项目名称' }
                    , { field: 'Quantity', title: '数量' }
                    , { field: 'NetWeight', title: '净重' }
                    , { field: 'Vm', title: '开路电压' }
                    , { field: 'Im', title: '短路电流' }
                    , { field: 'Voc', title: '最大功率电压' }
                    , { field: 'Isc', title: '最大功率电流' }
                    , { field: 'Pmax', title: '最大功率' }
                    , { field: 'FF', title: '填充因子' }
                    , { field: 'PowerLevel', title: '标称功率 Watt' }
                    , { field: '', title: '硅胶颜色' }
                ]]
            };
            table.render(options);
        });
    </script>
}
